package com.xy.tool.concurrent.locks.local;

import java.util.Objects;
import java.util.concurrent.locks.ReentrantLock;

public class LockWrapper {

    private ReentrantLock lock;
    private String id;

    public LockWrapper(ReentrantLock lock) {
        Objects.requireNonNull(lock);
        this.lock = lock;
    }

    public ReentrantLock getLock() {
        return lock;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

}
